//
//  HMHomeTableViewController.m
//  swift-新浪微博OC版-8-29
//
//  Created by 赵玉忠 on 16/8/29.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "HMHomeTableViewController.h"
#import "UIBarButtonItem+HMBarButtonItem.h"
#import "HMTempViewController.h"
#import "HMVisitorView.h"
@interface HMHomeTableViewController ()

@end

@implementation HMHomeTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    if (self.userLogin == NO) {
        [(HMVisitorView *)self.view setVisitorViewInfo:nil andWith:@"关注一些人，回这里看看有什么惊喜"];
        return;
    }
    
    [self setupUI];
}

-(void)setupUI{
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem HMBarButtonItem:@"navigationbar_friendsearch" andWithTitle:nil andWithTarget:nil andWithAction:nil];
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem HMBarButtonItem:@"navigationbar_pop" andWithTitle:nil andWithTarget:self andWithAction:@selector(push)];
}

-(void)push{
    UIViewController *vc = [[HMTempViewController alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}
@end
